﻿using System;
using Senparc.Weixin.MP.CommonAPIs;
using Senparc.Weixin.MP.Entities;
using ZilLion.Service.WeChatMall.Domain.Services.Interface;

namespace ZilLion.Service.WeChatMall.Domain.Services
{
    public class WechatMpProxyService : IWechatMpProxyService
    {
        // Methods
        public WeixinUserInfoResult GetUserInfo(string token, string openid)
        {
            try
            {
                return CommonApi.GetUserInfo(token, openid);
            }
            catch (Exception e)
            {
               return new WeixinUserInfoResult();
            }
           
        }
    }

}